﻿<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="SearchCollectionUploadedReport.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.Collection.SearchCollectionUploadedReport" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
 
      
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
  
    </asp:Content>

 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="detailstable">
 
    <tr>
        <td class="style6" colspan="4" >
     <asp:scriptmanager runat="server" ID="scriptmanager1"></asp:scriptmanager>
                    </td>
    </tr>
 
    <tr>
        <td class="style10" >
            &nbsp;</td>
        <td class="style8">
            &nbsp;</td>
        <td class="style7">
            &nbsp;</td>
        <td class="style11">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style10" >
            Branch*:</td>
        <td class="style8">
            <asp:DropDownList ID="ddlBranch" runat="server" CssClass="ddl">
                <asp:ListItem Selected="True" Value="-1">Select...</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="style7">
            &nbsp;</td>
        <td class="style11">
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style10">
            From Date*:</td>
        <td class="style8">
        <asp:TextBox ID="txtFrom" runat="server" CssClass="txtbox"></asp:TextBox>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/calander.jpg" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtFrom">*</asp:RequiredFieldValidator>
            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFrom" PopupButtonID="Image1" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
            
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtFrom" 
                ValidationExpression="^([1-9]|0[1-9]|[12][0-9]|3[01])[/.]([1-9]|0[1-9]|1[012])[/.][0-9]{4}$">*</asp:RegularExpressionValidator>
            
            </td>
                    <td class="style7">
            To Date*:</td>
            <td class="style11"><asp:TextBox ID="txtTo" runat="server" CssClass="txtbox"></asp:TextBox>
             <asp:Image ID="Image2" runat="server" ImageUrl="~/images/calander.jpg" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtTo">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToCompare="txtFrom" ControlToValidate="txtTo" Operator="GreaterThan" 
                    Type="Date">*</asp:CompareValidator>
            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtTo" PopupButtonID="Image2" Format="dd/MM/yyyy">
            </cc1:CalendarExtender>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtTo" 
                    ValidationExpression="^([1-9]|0[1-9]|[12][0-9]|3[01])[/.]([1-9]|0[1-9]|1[012])[/.][0-9]{4}$">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="style10">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="4">
            <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btn" 
                onclick="btnSearch_Click" OnClientClick="validationSummery();" />
        </td>
    </tr>
    <tr>
        <td colspan="4">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="4">
            &nbsp;</td>
    </tr>
    </table>
  </asp:Content>
